package com.ruoyi.system.domain.vo;



/**
 * 库存操作记录类
 * 用于记录配货时需要从哪些库存批次扣除多少数量
 */

public class StockOperation {
    private Integer stockId;       // 库存批次ID
    private Integer deductAmount; // 需要扣除的数量

    public Integer getStockId() {
        return stockId;
    }

    public void setStockId(Integer stockId) {
        this.stockId = stockId;
    }

    public Integer getDeductAmount() {
        return deductAmount;
    }

    public void setDeductAmount(Integer deductAmount) {
        this.deductAmount = deductAmount;
    }

    @Override
    public String toString() {
        return "StockOperation{" +
                "stockId=" + stockId +
                ", deductAmount=" + deductAmount +
                '}';
    }

    public StockOperation(Integer stockId, Integer deductAmount) {
        this.stockId = stockId;
        this.deductAmount = deductAmount;
    }
}
